<?php

namespace Admin\Models\sys;
use Admin\Models\BaseModel;
class XhsysGrade extends BaseModel
{

    /**
     *
     * @var integer
     */
    public $iRecId;

    /**
     *
     * @var integer
     */
    public $iTargetId;

    /**
     *
     * @var string
     */
    public $sMonth;

    /**
     *
     * @var integer
     */
    public $iGrade;

    /**
     *
     * @var string
     */
    public $mDesc;


    /**
     *
     * @var integer
     */
    public $bDelete;

    /**
     *
     * @var string
     */
    public $tCreateDate;

    /**
     *
     * @var string
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     */
    public $iLastModifyUserId;


    /**
     * @var integer
     */
    public $iType;

    /**
     * Initialize method for model.
     */
//    public function initialize()
//    {
//        parent::initialize();
//        $this->setSource("'XHSys_Tree'");
//    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSys_Grade';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhsysGrade[]
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhsysGrade
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }


}
